package com.w.proxy.player.impl;

import com.w.proxy.player.api.IPlayer;
import lombok.Data;


/**
 * @description 玩家实现类
 * @author wyw
 */
@Data
public class LoLPlayer implements IPlayer {

    private String userName;

    public LoLPlayer() {
    }

    public LoLPlayer(String userName) {
        this.userName = userName;
    }

    @Override
    public void login(String iLoginTime) {
        System.out.printf("user: %s,在时间: %s 登录", this.userName, iLoginTime);
        System.out.println();
    }

    @Override
    public void killMonster() {
        System.out.println(this.userName + "111111111111111殺怪中");
    }

    @Override
    public void levelUp() {
        System.out.println(this.userName + "222殺怪后升级");
    }

    @Override
    public void logout(String iLogoutTime) {
        System.out.printf("user: %s,在时间: %s 登录", this.userName, iLogoutTime);
        System.out.println();
    }

    @Override
    public int testInt(Integer iNum) {
        return 1111111111;
    }


    public void throwsTest(){
        throw new RuntimeException("");
    }
}
